#pragma once

#ifndef STDAFX
#define STDAFX

#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif

#include "Position.h"
#include "Connection.h"
#include <signal.h>
#include <gw2api.h>
#include <fstream>
#include <stdlib.h>
#include <Windows.h>
#include <stdio.h>
#include <shellapi.h>

#ifndef STD_DIR
#define STD_DIR "\\gw2maps"
#endif
#ifndef USER_DATA_SIZE
#define USER_DATA_SIZE 1024
#endif
#ifndef QUICK_SAVE_FILE
#define QUICK_SAVE_FILE "Gw2MapsConnectionInfo.gw2maps"
#endif
#ifndef UPDATER_EXE
#define UPDATER_EXE "Gw2MapsUpdater.exe"
#endif
#define VERSION 0x0100004d
#define UPDATERV11 "Gw2MapsUpdater.11"

struct opt{
	unsigned int interval;
	char *ip, *server, *guild, *user, *channel, *character, *profession, *delChar;
	float distance;
	bool tracking;
	u_short port;
};

#ifndef SAVE_FILE_STRUCT
#define SAVE_FILE_STRUCT
struct userData{
	char server[USER_DATA_SIZE], account[USER_DATA_SIZE], guild[USER_DATA_SIZE], channel[USER_DATA_SIZE];
	long time, distance;
	bool tracking, offline, autoUpdate; 
};
#endif

#endif